/* eslint-disable no-undef,no-unused-vars */
import { routerRedux } from 'dva/router';

export default {
  namespace: 'index',
  state: {},
  reducers: {},
  effects: {
    *queryUser({ payload }, { call, put }) {
      yield put(routerRedux.push('login'));
    },
  },
  subscriptions: {
    setup({ dispatch }) {
      dispatch({ type: 'queryUser' });
    },
  },
};
